#ifndef MACRO_H
#define MACRO_H

#include "config.h"
#include <string.h>

#define UCHAR(X)			((char *)(X))

#define RGB565(r, g, b)  (( (r >> 3) << 11) | ( (g >> 2) << 5) | (b >> 3))

#define MKRES(name,file) do{\
	memset(name,0,128);\
	strcpy(name,RESPATH);\
	strcat(name,file);\
	}while(0)






#endif
